# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname="setserial"
pkgver=2.17
pkgrel=0
pkgdesc="tool for change various attributes of a serial device"
url="http://setserial.sourceforge.net/"
arch="all"
license="GPL-2.0-only"
makedepends="groff linux-headers"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/setserial/setserial-$pkgver.tar.gz
	ioctls.patch
	setserial.patch"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--bindir=/bin
	make
}

package() {
	install -d $pkgdir/bin
	install -d $pkgdir/usr/share/man/man8
	make DESTDIR=$pkgdir install
}

sha512sums="27b4918d303302dfdbca2f8c4fe500685068cfbf3de70b4907bac5a9cdb2e643656c1d821e714c08723abcfbaf99129866002117450bef731a0a09cd38138645  setserial-2.17.tar.gz
17e4ec065d5f51c80f3358c749b7c6b0257b380f4b81cb9af14312202098b045a0ea833e88a663d3b090f19a09430ee7c96e7046b794166263617cb859b1b3d9  ioctls.patch
4c5f5bddb3f66aac51c1550d85726930221e995dd695f628bec37cf2f05c1db0c7b1c59ba745c32a9d8a91374a4491479f7786a58cfd0096157b2b22c764ac7f  setserial.patch"
